package com.azusa.common.utils;

import java.util.Collection;
import java.util.Map;

public class Assert {
	public static boolean isNullOrEmpty(String str){
		return str == null || str.length() == 0 || str.trim().length() == 0;
	}
	
	public static boolean isNullOrEmpty(Map<?, ?> map){
		return map == null || map.size() == 0;
	}
	
	public static boolean isNullOrEmpty(Collection<?> collection){
		return collection == null || collection.size() == 0;
	}
}
